<template>
	<view class="main">
		<view class="class-top">
			劳动一般
		</view>
		<view class="sort">
			综合排名
		</view>
		<view class="class-bottom">
			<view class="">
				<view class="">
					排名
				</view>
				<view class="">
					姓名
				</view>
				<view class="">
					分数
				</view>
			</view>
			<view class="">
				<view class="">
					1
				</view>
				<view class="">
					李敏
				</view>
				<view class="">
					分数
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				classList:[{
					id:1,
					url:"https://heroes.nosdn.127.net/a/images/2020/7/28/ed8237653d64482cbe6608839fac0182.jpg",
					name:"劳动1班",
					total:26,
					sjTaskCnt:10,
					kcTaskCnt:1,
					signCnt:23
				},{
					id:2,
					url:"https://heroes.nosdn.127.net/a/images/2020/7/28/ed8237653d64482cbe6608839fac0182.jpg",
					name:"劳动2班",
					total:26,
					sjTaskCnt:10,
					kcTaskCnt:1,
					signCnt:23
				},{
					id:3,
					url:"https://heroes.nosdn.127.net/a/images/2020/7/28/ed8237653d64482cbe6608839fac0182.jpg",
					name:"劳动2班",
					total:26,
					sjTaskCnt:10,
					kcTaskCnt:1,
					signCnt:23
				},{
					id:4,
					url:"https://heroes.nosdn.127.net/a/images/2020/7/28/ed8237653d64482cbe6608839fac0182.jpg",
					name:"劳动2班",
					total:26,
					sjTaskCnt:10,
					kcTaskCnt:1,
					signCnt:23
				}]
			}
		},
		onLoad(opt) {
			console.log(opt);
		},
		methods: {
			goClassInfo(id) {
				console.log(index);
				if (index == 0) {
					uni.setNavigationBarTitle({
						title: '首页'
					});
				} else if (index == 1) {
					uni.setNavigationBarTitle({
						title: '任务'
					});
				} else {
					uni.setNavigationBarTitle({
						title: '我的'
					});
				}
	
				// uni.switchTab({
				// 	url:this.list[index].pagePath
				// })
			},
			//切换班级
			changeClass(id){
				uni.setStorageSync('classId',id)
				console.log(uni.getStorageSync('id'));
				uni.switchTab({
					url:"/pages/home/home"
				})
			}
	
		}
	}
</script>

<style scoped lang="scss">
</style>
